package org.bigjava.user.mapper;

import org.apache.ibatis.annotations.Param;
import org.bigjava.bean.Topic;
import org.springframework.stereotype.Repository;


import java.util.List;

@Repository
public interface TopicMapper {

    //根据id查询话题
    Topic queryTopicById(@Param("topicId") long topicId);

    //热门话题分页(查询每一页的数据)
    List<Topic> indexHotTopic(@Param("selectStart") int selectStart,@Param("pageSize") int pageSize);

    //查询总共多少个话题
    int totalRecord();

    //点击查看话题详情
    Topic queryTopicByName(@Param("topicName") String topicName);
}
